<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "sample_position_alter".
 *
 * @property integer $pk_id
 * @property integer $sample_id
 * @property string $xna_type
 * @property integer $xna_fridge
 * @property string $case
 * @property string $case_a
 * @property string $case_b
 * @property integer $xna_x
 * @property integer $xna_y
 * @property integer $xna_z
 * @property string $crt_name
 * @property string $crt_time
 */
class SamplePositionAlter extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'sample_position_alter';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['sample_id', 'xna_type', 'crt_name', 'crt_time'], 'required'],
            [['sample_id', 'xna_fridge', 'xna_x', 'xna_y', 'xna_z'], 'integer'],
            [['xna_type'], 'string'],
            [['crt_time'], 'safe'],
            [['case'], 'string', 'max' => 20],
            [['case_a', 'case_b'], 'string', 'max' => 2],
            [['crt_name'], 'string', 'max' => 10]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'pk_id' => 'Pk ID',
            'sample_id' => 'Sample ID',
            'xna_type' => 'Xna Type',
            'xna_fridge' => 'Xna Fridge',
            'case' => 'Case',
            'case_a' => 'Case A',
            'case_b' => 'Case B',
            'xna_x' => 'Xna X',
            'xna_y' => 'Xna Y',
            'xna_z' => 'Xna Z',
            'crt_name' => 'Crt Name',
            'crt_time' => 'Crt Time',
        ];
    }
}
